package com.HW;

/**
 * @ClassName : THJ91
 * @Author : kele
 * @Date: 2023/10/28 18:23
 * @Description :
 */
public class THJ91 {

    public static void main(String[] args) {

        handle(2,2);

    }

    public static void handle(int n, int m) {

        int[][] dp = new int[n + 1][m + 1];

        for (int i = 0; i <= n; i++) {
            dp[i][0] = 1;
        }

        for (int i = 0; i <= m; i++) {
            dp[0][i] = 1;
        }

        for (int i = 1; i <= n; i++) {
            for (int j = 1; j <= m; j++) {
                dp[i][j] = dp[i - 1][j] + dp[i][j - 1];
            }
        }

        System.out.println(dp[n][m]);


    }
}
